import request from './request' 

// 获取商品列表数据
export const goodsData =(queryInfo) =>request.get('goods',{params:queryInfo})
// 删除商品列表数据
export const deleteGoods =(id) =>request.delete(`goods/${id}`)
// 获取数据
export const catData =() =>request.get('categories')
// 获取tab状态数据
export const tabStateData =(id,state) =>request.get(`categories/${id}/attributes`,{ params: { sel: state },})
// 添加商品
export const addShop =(data) =>request.post('goods',data)
